@kishore_hemmady said in QListWidget delete selected item:
how can i achieve this by selecting the check Box rather than selecting the list content?
for(int i=ui->listWidget->model()->rowCount()-1;i>=0;--i){
if(ui->listWidget->model()->index(i,0).data(Qt::CheckStateRole).toInt()==Qt::Checked)
ui->listWidgetMy->model()->removeRow(i);
}